﻿{strip}
<div style="margin-left:20px;margin-right:20px;">
	<h1>{$smarty.config.Project_add}</h1><br />
	
	
	<form name="project_newform" id="project_newform" accept-charset="utf-8" onsubmit="return false;">
	
		<div class="divFormFieldLabel">Name</div>
		<div class="divFormFieldInput"><input type="text" name="project_name" id="project_name" class="FormFieldInput" value=""/><br /><span class="error" id="project_new_error"></span></div>
		<br style="clear:both;" />
		
		<br />
		
		<h2>{$smarty.config.Project_add_ext_classes}</h2>
	
		{foreach name="extloop" from=$extensions item=ext}
			
			{if $ext.filetype != "goup"}
				<h3 style="border-bottom:1px solid #CCC;">{$ext.name}</h3>
				{foreach name="extloop" from=$ext.classes item=class}
					{if $class.filetype != "goup"}
						<div style="border-bottom:1px solid #CCC;">
							<div class="divFormFieldLabel">{$class.name}</div>
							<div class="divFormFieldInput"><input style="width:20px;" type="checkbox" name="classes[]" value="{$ext.name}/{$class.name}"/> {$class.info}</div>
							<br style="clear:both;" />
						</div>
					{/if}
				{/foreach}
			{/if}
		{/foreach}
	
	
	
	
		<div class="divFormFieldLabel">&nbsp;</div>
		<div class="divFormFieldInput"><input type="button" name="submitbtn" value="{$smarty.config.Project_db_save}"  onclick="{literal}xajax.request({ccdsfun:'ProjectNewConfirm',ccdsclass:'ccdsProject'},{parameters:[xajax.getFormValues('project_newform')]});{/literal}"/></div>
		<br style="clear:both;" />
	
	
	</form>
		
	<br />	
	</div>
	<br style="clear:both;" />
</div>
{/strip}